#/bin/bash

mpstat $1 $2 > $3

#creating filename variable so as not to overwrite the $3 file created (both .dat and .gz file at end of script)
filename = $3

gzip filename > data.gz

echo "Script Complete"
